#-*- codeing = utf-8 -*-
#@Time: 2021/9/11 22:12
#@Author: Ivan
#@File: 07-循环.py
#@Software: PyCharm

# sum = 0
# a = 1
# while a <= 100:
#     sum += a
#     a += 1
# print(sum)


# sum = 0
# a = 1
# while a <= 100:
#     if a % 2 == 0:
#         sum += a
#     a += 1
# print(sum)

'''
break 结束整个循环
continue 结束当前循环，进行下次循环
'''


# row = 1
# while row <= 9:
#     print('*' * row)
#     row += 1

# row = 1
# while row <= 9:
#     col = 1
#     while col <= row:
#         print('*', end="")
#         col += 1
#     print()
#     row += 1

# 99乘法表
row = 1
while row <= 9:
    col = 1
    while col <= row:
        print('%d*%d=%d\t'%(col, row, col * row), end="")
        col += 1
    # 换行
    print()
    row += 1
